﻿public class Point {
	private int x;
	private int y;

	public int getX() {
		return x;
	}

	public void setX(int newX) {
		x = newX;
	}

	public int getY() {
		return y;
	}

	public void setY(int newY) {
		y = newY;
	}

	/**
	 * x：100以内随机数 y：100以内随机数
	 */
	public Point drawPoint() {
		this.x = (int) (Math.random() * 100);
		this.y = (int) (Math.random() * 100);
		return this;
	}
	// public static void main(String[] args) {
	// Point point = new Point();
	// point.drawPoint();
	// System.out.println(point.getX()+"  "+point.getY());
	// }
}